home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.2 KB | 53 lines | [TEXT/GEOL] |
- Item 3240841 15-June-89 10:57
-
- From: MOOF Rollin, Keith A, APL
-
- To: MACAPP.TECH$ MACAPP Tech
-
- Sub: Re- Shrinking Menus
-
- Ed,
-
- The problem you have noticed with shrinking menus is a bug with MacApp 2.0ß5.
- It will be fixed in the next release of MacApp. If you need to have a working
- version now, the fix involved changing TPopup.AdjustBotRight:
-
- PROCEDURE TPopup.AdjustBotRight;
-
- VAR
- numItems: INTEGER;
- newHeight: INTEGER;
- newWidth: INTEGER;
- savedPort: GrafPtr;
- theFontInfo: FontInfo;
-
- BEGIN
- IF fMenuHandle <> NIL THEN
- BEGIN
- CalcMenuSize(fMenuHandle);
- numItems := CountMItems(fMenuHandle);
- newWidth := fMenuHandle^^.menuWidth + fItemOffset + fInset.left +
- fInset.right + 3;
-
- GetPort(savedPort);
- SetPort(gWorkPort);
- SetPortTextStyle(gSystemStyle);
- GetFontInfo(theFontInfo);
- SetPort(savedPort);
-
- WITH theFontInfo DO
- newHeight := ascent + descent + leading + fInset.top + fInset.bottom + 3;
-
- Resize(newWidth, newHeight, kDontRedraw);
- END;
- END;
-
-
- Sorry about the missing TABs; they are still there, but AppleLink doesn't show
- them. Hope this helps!
-
- - Keith Rollin
- - Apple Developer Technical Support
-
-
-